<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>jsx_小练习</title>
  </head>
  <body>
    <div id="test"></div>

    <script src="../js/react.development.js"></script>
    <script src="../js/react-dom.development.js"></script>
    <script src="../js/babel.min.js"></script>

    <script type="text/babel">
      const jList = ['Angular', 'Vue', 'React']
      const vdom = (
        <div>
          <h2>前端 js 框架</h2>
          <ul>
            {jList.map((item, index) => {
              return <li key={index}>{item}</li>
            })}
          </ul>
        </div>
      )

      ReactDOM.render(vdom, document.getElementById('test'))

      // 解析：
      // 表达式：一条语句产生一个值就叫表达式
    </script>
  </body>
</html>
